#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include "Database.h"
using namespace std;

int main()
{
	Database db("data.data");

    PData* data = new PData{ 0xe601,"baidu","www.afafcom",entertainment,"edwin","aaa111","aaa111",0x02,"search1 net",time(NULL)};
    db.addPData(*data);
    delete data;
    db.printDatas();


	return 0;
}